package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.MovementsVo;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {
    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    void publish(Movement movement);

    List<Movement> findFriendMovements(Long userId, Integer page, Integer pagesize);

    List<Movement> randomMovements(Integer pagesize);

    Movement findBymovementId(String movementId);

    PageResult findFriendMovement(Integer page, Integer pagesize, Long uid, Integer state);
}
